//
//  KFDMarketPrice.m
//  KFD
//
//  Created by JIRENTIANXIANG on 6/8/15.
//  Copyright (c) 2015 KFD. All rights reserved.
//

#import "KFDMarketPrice.h"

@implementation KFDMarketPrice

-(instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    if (self=[super initWithDictionary:dictionary]) {
        self.change_pro=@(((NSString*)dictionary[@"change_pro"]).floatValue);
        if ([self.typename isEqualToString:@"silver"]) {
            self.typename_ch=@"伦敦银";
        }else if([self.typename isEqualToString:@"gold"]){
            self.typename_ch=@"伦敦金";
        }else if([self.typename isEqualToString:@"usdx"]){
            self.typename_ch=@"美元指数";
        }else if ([self.typename isEqualToString:@"hs300"]){
            self.typename_ch=@"沪深300";
        }else if ([self.typename isEqualToString:@"usoiln5"]){
            self.typename_ch=@"美国原油";
        }else if([self.typename isEqualToString:@"ukoilq5"]){
            self.typename_ch=@"英国原油";
        }
    }
    return self;
}

@end
